package com.itHsuSE.demo8;

import javax.swing.*;
import java.awt.*;

/**
 * @author Hsu琛君珩
 * @ClassName:Test15
 * @date 2023-12-20
 * @apiNote
 * @Version: v1.0
 */

public class Test15 {
    public static void main(String[] args) {
        JFrame jf = new JFrame("Frame");
        jf.setBounds(400,300,500,600);
        jf.setVisible(true);
        JButton jb1=new JButton("香蕉");
        JButton jb2=new JButton("草莓");
        JPanel jp=new JPanel(new FlowLayout());
        jp.add(jb1);
        jp.add(jb2);
        jf.add(jp);
    }
}
